package com.en.controller.User;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalDate;
import java.time.LocalTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.*;

@Data
public class UserAddDto implements Serializable {

    @NotBlank(message = "mobile不能为空")
    private String mobile;

    @NotBlank(message = "truename不能为空")
    private String truename;

    @NotBlank(message = "nickname不能为空")
    private String nickname;

    @NotBlank(message = "avatar不能为空")
    private String avatar;

    @ApiModelProperty("1：男  2：女")
    @NotNull(message = "gender不能为空")
    private Integer gender;

    @NotNull(message = "birthday不能为空")
    private LocalDate birthday;

    @NotNull(message = "create_datetime不能为空")
    private LocalDateTime create_datetime;

    @NotBlank(message = "buy_stage_ids不能为空")
    private String buy_stage_ids;

    @ApiModelProperty("用户下一课是哪一课")
    @NotNull(message = "next_class_id不能为空")
    private Integer next_class_id;

    @NotNull(message = "study_word_count不能为空")
    private Integer study_word_count;

    @ApiModelProperty("只要用户复习或学习了，就+1。目的：同步多个设备之间的学习进度。")
    @NotNull(message = "study_word_version不能为空")
    private Integer study_word_version;

    @NotNull(message = "discount不能为空")
    private Double discount;

    @NotNull(message = "discount_start不能为空")
    private LocalDateTime discount_start;

    @NotNull(message = "discount_end不能为空")
    private LocalDateTime discount_end;

    @ApiModelProperty("1：正常；-98：管理员删除；-99：已注销；")
    @NotNull(message = "status不能为空")
    private Integer status;

}
